#include<stdio.h>
int main()
{
    //freopen("in.txt","r",stdin);
    int m,t,s;
    scanf("%d %d %d",&m,&t,&s);
    if(t==0) printf("0");
    else
    {
        if(s%t != 0)
        {
            if(m-s/t - 1 <= 0) printf("0");
            else printf("%d",m-s/t - 1);
        }
        else
        {
            if(m-s/t <= 0) printf("0");
            else printf("%d",m-s/t);
        }
    }
}